//
// Created by Administrator on 2023/8/8.
//
#include <string>
#include <iostream>

using namespace std;

class Solution {
public:
    int convertTime(string current, string correct) {
        int c = str2int(current);
        int t = str2int(correct);
        int target = abs(c - t);
        int ans = 0;
        ans += target / 60;
        target %= 60;
        ans += target / 15;
        target %= 15;
        ans += target / 5;
        target %= 5;
        ans += target;
        return ans;

    }

    int str2int(string stime) {
        // 把字符串表示的数字转换成实际的分钟数
        int hour = stoi(stime.substr(0, 2));
        int min = stoi(stime.substr(3, 2));
        return hour * 60 + min;
    }
};


int main() {
    Solution s;
    cout << s.convertTime("11:00", "11:01") << endl;
    return 0;
}